{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "9ecc39b9",
   "metadata": {},
   "source": [
    "## 补课练习——招聘网站\n",
    "* 1.找到API数据的接口\n",
    "* 2.发送请求，请求到指定区域、职位的数据\n",
    "* 3.下载数据，存放到excel中\n",
    "* 4.数据分析：做该职位的地区分布（地图）、职位分布、职位标签（工作要求）、学历要求\n",
    "* 5.数据分析补充（待）\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a5774225",
   "metadata": {},
   "source": [
    "## 期末项目\n",
    "* 数量500行x20列以上\n",
    "### 1.week13week14补课练习\n",
    "### 2.week15（selenium自动化模块）\n",
    "### 3.week01-week09（静态页面数据抓取）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "c05f8ff7",
   "metadata": {},
   "outputs": [],
   "source": [
    "from requests_html import HTMLSession\n",
    "import json\n",
    "import pandas as pd\n",
    "import requests\n",
    "import json"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "b05005cc",
   "metadata": {},
   "outputs": [],
   "source": [
    "url = \"https://www.zhipin.com/wapi/zpgeek/recommend/job/list.json?expectId=d3e657ff08678d3803Ry0t2-EFBX&experience=&degree=&scale=&stage=&welfare=&salary=&positionType=&payType=&multiBusinessDistrict=&multiSubway=&page=1&sortType=1\"\n",
    "payload = {\n",
    "    'expectId': 'd3e657ff08678d3803Ry0t2-EFBX',\n",
    "    'experience': '',\n",
    "    'degree': '',\n",
    "    'scale': '',\n",
    "    'stage': '',\n",
    "    'welfare': '',\n",
    "    'salary': '',\n",
    "    'positionType': '',\n",
    "    'payType': '',\n",
    "    'multiBusinessDistrict': '',\n",
    "    'multiSubway': '',\n",
    "    'page': 1,\n",
    "    'sortType': 1\n",
    "\n",
    "}\n",
    "\n",
    "# create an HTML session using Requests-HTML\n",
    "session = HTMLSession()\n",
    "\n",
    "# set the headers\n",
    "headers = {\n",
    "    'Accept': 'application/json, text/plain, */*',\n",
    "    'Accept-Encoding': 'gzip, deflate, br',\n",
    "    'Accept-Language': 'zh-CN,zh;q=0.9',\n",
    "#     'Cache-Control': 'no-cache',\n",
    "#     'Connection': 'keep-alive',\n",
    "#     'Content-Length': '412',\n",
    "#     'Content-Type': 'application/json;charset=UTF-8;',\n",
    "#     'Host':'we.51job.com',\n",
    "#     'Partner':'sem_pcbaiduyj_59565',\n",
    "#     'Property':'%7B%22partner%22%3A%22sem_pcbaiduyj_59565%22%2C%22webId%22%3A2%2C%22fromdomain%22%3A%2251job_web%22%2C%22frompageUrl%22%3A%22https%3A%2F%2Fwe.51job.com%2Fpc%2Fmy%2Fmyjob%22%2C%22pageUrl%22%3A%22https%3A%2F%2Fwe.51job.com%2Fpc%2Fsearch%22%2C%22identityType%22%3A%22%E5%9C%A8%E6%A0%A1%E7%94%9F%22%2C%22userType%22%3A%22%E8%80%81%E7%94%A8%E6%88%B7%22%2C%22isLogin%22%3A%22%E6%98%AF%22%2C%22accountid%22%3A%22227021599%22%7D',\n",
    "    # Cookie 是用户登录之后的cookie\n",
    "    'Cookie':'lastCity=101280100; wd_guid=18aad9d4-ca8a-46e1-8790-6d72a4a36033; historyState=state; YD00951578218230%3AWM_NI=xbAyb14zEVAx8TuNHOfooTdROCLNffPJ2z58o%2BiYPe2a75FPofrxC66F%2Bo2xzY33l3G9T5W47HlaD42Ws268fZCbAJ9cXgoUa6nGDLBpkxUD38n5nzW7lNuf%2Bzh4hicxUm0%3D; YD00951578218230%3AWM_NIKE=9ca17ae2e6ffcda170e2e6ee99ec4aadeaa48acb5df3ef8aa2d85f968a8fadd56eaab3a08de97293b5a4bbb62af0fea7c3b92abcbe8f9ae13bf8a68bb7c474fc8cbbafcb45a6b1a1b5e75a8d9d84afe56e9496fe9bb834adf5a7bad36ff2bff9d6c55cadbabe99c23ef69ae590b174ba87fdd4ef3985e79cd6d640f598a482c740f289bdd3b534a6868d83c442fbbd9888ee5fa3eaa2a8c74882b0a599d850f1e8a2d6ed7295e9a4aff86ee9a6a8d5eb63a1a89b8eb337e2a3; YD00951578218230%3AWM_TID=q9ayXfJASGpAFAFQERLALjnLxnyFklI7; _bl_uid=stlgyg9pa04xRXp55vtti0d0R58a; __zp_seo_uuid__=9da16ca0-f806-44b7-b250-b020ae6d91ba; __g=-; Hm_lvt_194df3105ad7148dcf2b98a91b5e727a=1685190236; Hm_lpvt_194df3105ad7148dcf2b98a91b5e727a=1685190248; __l=r=https%3A%2F%2Fwww.bing.com%2F&l=%2Fwww.zhipin.com%2Fweb%2Fgeek%2Fjob%3Fquery%3D%26city%3D101280100%26position%3D100901&s=3&g=&friend_source=0&s=3&friend_source=0; boss_login_mode=wechat; wt2=Df5RlBLgWsylCrOxLUx-EKtMY2DTUut66dVB1rQhVsuV2yWdoZ03B7_UExn0XybsRY179PCfXXRE8m4vWJWLCNA~~; wbg=0; __zp_stoken__=0933eIzI7Hzh4WEk3UHA1SBJjblA8BBJSBShBTB1YQysleXsrMWJ8Zw0jM09fDzt5fjtWP3A7cUkGOEIECh89CTcjdHJ9HhdfbB4dSzhoUDtHXBIOBlt3RAkgTk5hLxgyPAJkRHUbBUA2eT4%3D; __c=1685190236; __a=50470964.1667236966.1681137232.1685190236.12.3.6.12',\n",
    "    'Referer': 'https://www.zhipin.com/web/geek/recommend',\n",
    "    'Sec-Ch-Ua': '\"Google Chrome\";v=\"113\", \"Chromium\";v=\"113\", \"Not-A.Brand\";v=\"24\"',\n",
    "    'Sec-Ch-Ua-Mobile': '?0',\n",
    "    'Sec-Ch-Ua-Platform': '\"Windows\"',\n",
    "    'Sec-Fetch-Dest': 'empty',\n",
    "    'Sec-Fetch-Mode': 'cors',\n",
    "    'Sec-Fetch-Site': 'same-origin',\n",
    "    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36',\n",
    "    'Token':'BPhTnLURch19pbW3',\n",
    "    'Traceid':'0B0470C1-04B3-4F7E-B7AF-59874C4E258A',\n",
    "    'X-Requested-With':'XMLHttpRequest',\n",
    "    'Zp_token':'V1RN8nF-L-2lhjVtRvxxgZICu47jzUzCs~'\n",
    "\n",
    "\n",
    "}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "0a45f8e8",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'code': 0, 'message': 'Success', 'zpData': {'jobRecTips': '', 'pageSize': 15, 'sessionId': 'ca7da6f1-64bb-48eb-b9c5-886c91513468', 'jobList': [{'securityId': 'aPgWK2I6wZcx8-D1WbHuPyeXntH5QyQhRfCMVifpwP3x0pWbkNML8Z3Qe_mG4HfcFBVkbq1za_n2KdHLZpnBGvCHfQ6tQHBhUy6-oHPMe6x9lcwgikGPp5rXSsIudvPV9Aix2jK1fAV7h2aU', 'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_7.png', 'bossCert': 3, 'encryptBossId': 'b80bbcc4689abefc0nZy3di7EldW', 'bossName': '黄俊成', 'bossTitle': '招聘者', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': 'bd1ade22f1e999d61XV-29-4FlFY', 'expectId': 408903027, 'jobName': '前端开发', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.1', 'salaryDesc': '3-8K', 'jobLabels': ['1-3年', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['HTML', 'JavaScript', 'CSS', 'SQL'], 'jobExperience': '1-3年', 'daysPerWeekDesc': '', 'leastMonthDesc': '', 'jobDegree': '本科', 'cityName': '广州', 'areaDistrict': '番禺区', 'businessDistrict': '大学城', 'jobType': 0, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 0, 'optimal': 0, 'iconFlagList': [], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': 'a379520a931cad791nN_2Nm9FlQ~', 'brandName': '维度科技', 'brandLogo': 'https://img.bosszhipin.com/beijin/icon/894ce6fa7e58d64d57e7f22d2f3a9d18afa7fcceaa24b8ea28f56f1bb14732c0.png', 'brandStageName': '', 'brandIndustry': '计算机软件', 'brandScaleName': '0-20人', 'welfareList': [], 'industry': 0, 'contact': False}, {'securityId': 'Ct-3i6-S178PM-T1aG_VsZA_iZyadYiLU5Uf1XkYoubRhKsPqexSPLXak9tWuDo6fqNv3WkvWj9gs6DdHhzdG5UqVEonVJJ1x-X_dxTx2Sl2VCj22uY4mUOKrsJnnjDmfwCiVmcb-AlVCA~~', 'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/avatar/20211114/607f1f3d68754fd053e6c809c8f3cbdae32462f5eba61398775e6735a67dbfe84f91e14c7ce81403_s.jpg', 'bossCert': 3, 'encryptBossId': 'e094e79334ee57ec03R639y0GVY~', 'bossName': '蔡行', 'bossTitle': '软件工程师', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': 'f272934c29f80b211n193tm0GFtW', 'expectId': 408903027, 'jobName': '前端开发实习生', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.2', 'salaryDesc': '6-8K', 'jobLabels': ['经验不限', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['Node.js', 'JavaScript', 'Android'], 'jobExperience': '经验不限', 'daysPerWeekDesc': '', 'leastMonthDesc': '', 'jobDegree': '本科', 'cityName': '深圳', 'areaDistrict': '龙岗区', 'businessDistrict': '坂田', 'jobType': 0, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 1, 'optimal': 0, 'iconFlagList': [4], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': '4ffe5a5ea95f57e50HR72t-0Ew~~', 'brandName': '齐昕动力', 'brandLogo': 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20230512/7bf6f160950405e9cea2bb67b383b35a9d2230463998e1154dd8de26b1c5a7125261a2721bb3ff94.jpg', 'brandStageName': 'A轮', 'brandIndustry': '电子/半导体/集成电路', 'brandScaleName': '20-99人', 'welfareList': ['补充医疗保险', '团建经费', '零食下午茶', '带薪年假', '五险一金', '年终奖', '节日福利', '股票期权'], 'industry': 0, 'contact': False}, {'securityId': 'ylG2uxW2r6aeA-K1cBUxhM4dGM-zoSiLIoYF_PEapeth4mJoLeSRjHvL7x1zchGdEAnXwTtNgEfgy_3xro60cEdYSXZ74cW0F6S0viV3utH6nRqxNxXdZxwwXJ6oRR4ChIdIiek4UETERHs1', 'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/avatar/20230514/607f1f3d68754fd07e4988c67056cc0bb86071d8c4338a6c568a43a8829eaf3900de9f18f355e1fe_s.png', 'bossCert': 3, 'encryptBossId': '27f63704b044824a0nR82dS5EltZ', 'bossName': '齐女士', 'bossTitle': '产品', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': '4453285a6faa589e1Xx-0tS6E1FW', 'expectId': 408903027, 'jobName': '前端开发实习生', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.3', 'salaryDesc': '150-200元/天', 'jobLabels': ['4天/周', '6个月', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['JavaScript', 'HTML5', 'CSS', '计算机/软件工程相关专业', '前端开发经验'], 'jobExperience': '4天/周 6个月', 'daysPerWeekDesc': '4天/周', 'leastMonthDesc': '6个月', 'jobDegree': '本科', 'cityName': '上海', 'areaDistrict': '松江区', 'businessDistrict': '小昆山', 'jobType': 4, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 1, 'optimal': 0, 'iconFlagList': [4], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': '83cd3152722ac52e1XZ52Nq8E1A~', 'brandName': '萌宠佳友', 'brandLogo': 'https://img.bosszhipin.com/beijin/icon/894ce6fa7e58d64d57e7f22d2f3a9d18afa7fcceaa24b8ea28f56f1bb14732c0.png', 'brandStageName': '', 'brandIndustry': '宠物服务', 'brandScaleName': '0-20人', 'welfareList': [], 'industry': 0, 'contact': False}, {'securityId': 'IbOZitrHXp_TU-X1GTSVWLnGcbsA-VTufjAFFqNwgq_IYy1LKYCCMPopbwv4d2-VlMSZ7-_50Z0JPHZpLl-SN2yAHBns6xjvwyazlZeQqLohDi1cVyH9f7pdMKTANQHW5sP_Nuh90AoKhg~~', 'bossAvatar': 'https://img.bosszhipin.com/beijin/mcs/useravatar/20190613/a978546c71d0e4275cc3b62bcbec6208cfcd208495d565ef66e7dff9f98764da_s.jpg', 'bossCert': 3, 'encryptBossId': 'ae0a3ff1606316f61XV72NS8E1A~', 'bossName': '张竞楠', 'bossTitle': '人力资源专员', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': 'b29c609ebd2a428d1Xx80t67FVpZ', 'expectId': 408903027, 'jobName': 'web前端开发实习生', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.4', 'salaryDesc': '200-250元/天', 'jobLabels': ['5天/周', '12个月', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['React', '计算机/软件工程相关专业', '前端开发经验', '技术博客/开源项目有所贡献'], 'jobExperience': '5天/周 12个月', 'daysPerWeekDesc': '5天/周', 'leastMonthDesc': '12个月', 'jobDegree': '本科', 'cityName': '合肥', 'areaDistrict': '蜀山区', 'businessDistrict': '天鹅湖万达广场', 'jobType': 4, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 1, 'optimal': 0, 'iconFlagList': [4], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': 'f305e3551bf88df81nd73N67FA~~', 'brandName': '青谷信息', 'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20180205/7633a2e6a9b3c5d5c851c99842431766350831faf5e9112cd129ddcdc91b4840.jpg', 'brandStageName': '未融资', 'brandIndustry': '互联网', 'brandScaleName': '100-499人', 'welfareList': ['定期体检', '节日福利', '带薪年假', '年终奖', '员工旅游', '通讯补贴', '项目奖金', '年终奖', '股票期权'], 'industry': 0, 'contact': False}, {'securityId': 'BE_z5J13EjXCk-s1MgSYiaXJfqxKt_uLuPAmkrrANFvnC4xH3ElxE4qnzroSu4ZQky-B4_krUlRmtbQRqn2UVXq6kH5kos3Uxw-RTtsh5J0GquX1O51l_2Ui0OjNY69IsSTW2pg4IyK2NPQ~', 'bossAvatar': 'https://img.bosszhipin.com/beijin/mcs/useravatar/20180505/b8ea4f76bfe212e876fc4dc2bac640a4a25f296400eacb47608096d63ae0b2e1_s.jpg', 'bossCert': 3, 'encryptBossId': '3b77cd56e66b0c9b1Hx5396-EFA~', 'bossName': '张平富', 'bossTitle': '招聘者', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': '1e2024ba76ca85581nFy0t2-F1JY', 'expectId': 408903027, 'jobName': '前端开发工程师', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.5', 'salaryDesc': '3-4K·13薪', 'jobLabels': ['经验不限', '学历不限'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['前端开发'], 'jobExperience': '经验不限', 'daysPerWeekDesc': '', 'leastMonthDesc': '', 'jobDegree': '学历不限', 'cityName': '广州', 'areaDistrict': '番禺区', 'businessDistrict': '市桥', 'jobType': 0, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 0, 'optimal': 0, 'iconFlagList': [], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': 'ff0a2aa48309d38b1nN-2t2_GFQ~', 'brandName': '恒网科技', 'brandLogo': 'https://img.bosszhipin.com/beijin/app/mobile/normal-0e3f1e4441a21d4874cece3a3d81f0fe.png', 'brandStageName': '', 'brandIndustry': '互联网', 'brandScaleName': '20-99人', 'welfareList': [], 'industry': 0, 'contact': False}, {'securityId': 'rZsqL5ezoN7OT-Y1tH-F0wBv9JpoNwmXNPkCGcnRk6BAh6r4I_v790nx4rqHEfwS4UT1VmmdQJBk71mNQe24YdnJrIuO3kyF3uuz-lUHWQuMBdxiRTTC0g2J63L4JbUVt0SvDxt8NToAYg~~', 'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/avatar/20220224/607f1f3d68754fd0806637fc1fde29f666aa058a82321633a50bda9c53030e0b7ae7536c9eb30a61_s.jpg', 'bossCert': 3, 'encryptBossId': '48087d2907d70e6e03F63dy_E1E~', 'bossName': '黄女士', 'bossTitle': '前端主管', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': 'e448c5f1db0f9a5f1XZy3Ni-ElZY', 'expectId': 408903027, 'jobName': '前端开发实习生', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.6', 'salaryDesc': '140-180元/天', 'jobLabels': ['7天/周', '3个月', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['Vue', 'H5/C3/JS'], 'jobExperience': '7天/周 3个月', 'daysPerWeekDesc': '7天/周', 'leastMonthDesc': '3个月', 'jobDegree': '本科', 'cityName': '深圳', 'areaDistrict': '南山区', 'businessDistrict': '西丽', 'jobType': 4, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 1, 'optimal': 0, 'iconFlagList': [4], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': 'bfe3891a6c4dc5a71XB_29-5EA~~', 'brandName': '华声医疗', 'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20190227/f53af65911428de146afff30b93b41cff32d7010506213c99a30ca978565a9b1_s.jpg', 'brandStageName': 'B轮', 'brandIndustry': '医疗设备/器械', 'brandScaleName': '500-999人', 'welfareList': ['餐补', '通讯补贴', '音乐下午茶', '交通补助', '定期体检', '兴趣协会', '零食下午茶', '五险一金', '节日福利', '年薪包', '员工旅游', '年终奖', '带薪年假'], 'industry': 0, 'contact': False}, {'securityId': 'o25YOHa0yQkwI-c1p4RyR62axTz3z1BDIaE4RxJTyMcvaeE1U-ZOskTRbegLg_0Q5zTzXl6NP5vUMkNY5psJ3KGCN8m6iYPrJBJzJQ87SuqVSnX-NrLDpfCk4pWlqpaGrINGJ83Jqkvp', 'bossAvatar': 'https://img.bosszhipin.com/beijin/mcs/useravatar/20161028/dc3c025559e0f446c4cb3553960ab8828345dd3565835fe42a8679b5f3cdce48_s.jpg', 'bossCert': 3, 'encryptBossId': '4f0875c1506f9b821n1z292_GVQ~', 'bossName': '邓先生', 'bossTitle': '招聘者', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': '4450a0a803552a781XB92tm8FVpW', 'expectId': 408903027, 'jobName': 'UNIAPP(VUE)前端实习', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.7', 'salaryDesc': '130-180元/天', 'jobLabels': ['5天/周', '3个月', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['Vue', 'HTML5', 'JavaScript'], 'jobExperience': '5天/周 3个月', 'daysPerWeekDesc': '5天/周', 'leastMonthDesc': '3个月', 'jobDegree': '本科', 'cityName': '深圳', 'areaDistrict': '龙华区', 'businessDistrict': '深圳北站', 'jobType': 4, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 1, 'optimal': 0, 'iconFlagList': [4], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': '2ddc2499ecaa996003R409S_', 'brandName': '俊网', 'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20190212/b106a002b9f2ea6ab2f46f814ef55f22d601821abe36fb34d5a2f5330b3564d0.png', 'brandStageName': '未融资', 'brandIndustry': '电子商务', 'brandScaleName': '20-99人', 'welfareList': ['五险一金'], 'industry': 0, 'contact': False}, {'securityId': 'uOZrqMHqzArFn-i1T2a3A8ZTzuuDgcdGECrGYiUFejZg5HjEzeTN6vkRBNPYgIBBSMyJSnsEEpwF2Df_-OzbGmYjy7MlGjmr2N9_SRajlfENSFpZ4R_EZqnZwavvjTCXaWBZ5kUXukii', 'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/tmp/20210901/a2f3e71d9181a67b3d68c1d81966e50cb4031b42a1b7c533cfc52e6ed70787214a040fbe27cc7e49_s.jpg', 'bossCert': 3, 'encryptBossId': 'c30a13028f86d9081XJ509m6EVU~', 'bossName': '陈女士', 'bossTitle': '人事HR', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': 'df6a08a998bc57f61n170t24GFpW', 'expectId': 408903027, 'jobName': '前端开发实习生', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.8', 'salaryDesc': '3-4K', 'jobLabels': ['1年以内', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['前端开发', 'JavaScript', 'CSS', 'HTML', 'HTML5', 'React', 'Bootstrap', 'Web端'], 'jobExperience': '1年以内', 'daysPerWeekDesc': '', 'leastMonthDesc': '', 'jobDegree': '本科', 'cityName': '广州', 'areaDistrict': '天河区', 'businessDistrict': '天河公园', 'jobType': 0, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 0, 'optimal': 0, 'iconFlagList': [], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': 'c5eab1ae4496c89b0HJ92dW0', 'brandName': '天迅网络', 'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20170716/9cfb3fd07ede49e0ff1aaaf0e2432a6f1a1e4f87f826d045970b516755730e96.jpg', 'brandStageName': '未融资', 'brandIndustry': '计算机软件', 'brandScaleName': '20-99人', 'welfareList': ['零食下午茶', '五险一金', '节日福利', '员工旅游'], 'industry': 0, 'contact': False}, {'securityId': 'DsMFmI1oMTGFa-i1WDRUmbtBZz9xMJUs1TL1KdY2VuNFxFwgmWsM2GSXEkymKzXzigdxjF4Gy1xzkE2xYwzCjEcxHwfvRgxc5bumS9yqD3QkhlIud3QtLZQnH1Gj2d3o9rFr3mtsgKJwLw~~', 'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_15.png', 'bossCert': 3, 'encryptBossId': 'b4783561acfc055f03N-2NW1EFE~', 'bossName': '李宝玉', 'bossTitle': '招聘者', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': '31ab685815edcacf1Xd-09u_GVJQ', 'expectId': 408903027, 'jobName': 'WEB前端开发实习', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.9', 'salaryDesc': '150-300元/天', 'jobLabels': ['3天/周', '3个月', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['HTML', '前端开发', 'Web端', '移动端', '小程序'], 'jobExperience': '3天/周 3个月', 'daysPerWeekDesc': '3天/周', 'leastMonthDesc': '3个月', 'jobDegree': '本科', 'cityName': '杭州', 'areaDistrict': '余杭区', 'businessDistrict': '仓前', 'jobType': 4, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 1, 'optimal': 0, 'iconFlagList': [4], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': '0a55a725e748a2821HZ909m6GQ~~', 'brandName': '杭州全景数据科技...', 'brandLogo': 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20210806/68b1ac1727cdd3c678cbf8c7d3f8f1d3f212260c6c30e83dceeca306e84ebc5f.jpg', 'brandStageName': '天使轮', 'brandIndustry': '医疗健康', 'brandScaleName': '0-20人', 'welfareList': ['五险一金', '全勤奖', '年终奖', '带薪年假', '股票期权'], 'industry': 0, 'contact': False}, {'securityId': '0VNKynwE66rXB-Z1XufqZynYI0f8Zkh_GMnCslAiJ52qiFxhUvw3-f3H3Tb9MhqHxST4Y8vnC73byo1sznP3p8hbQZmDZwH0T9cShTxFYnfDmt4Irlw4bAzKFPHPeQFIzcGKWw-18PcwlFg~', 'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_6.png', 'bossCert': 3, 'encryptBossId': '680ce6e6e91dc59e1nV83N-0EVtX', 'bossName': '乐先生', 'bossTitle': '行政', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': '4505f719527112ed1nV72tS-ElZQ', 'expectId': 408903027, 'jobName': '前端开发工程师', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.10', 'salaryDesc': '80-130元/天', 'jobLabels': ['5天/周', '6个月', '大专'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['前端开发', 'JavaScript', 'CSS', 'JQuery', 'Vue', 'Vue.js'], 'jobExperience': '5天/周 6个月', 'daysPerWeekDesc': '5天/周', 'leastMonthDesc': '6个月', 'jobDegree': '大专', 'cityName': '广州', 'areaDistrict': '海珠区', 'businessDistrict': '新港西路沿线', 'jobType': 4, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 0, 'optimal': 0, 'iconFlagList': [], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': 'e9eeb88cc6c9c92a3nZ-3Ny5FQ~~', 'brandName': '科上技术', 'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20200729/6ae530e312f59c34738b0c5b8abb1951660afb547a9cef9e5c99753e44aa53f9_s.jpg', 'brandStageName': '未融资', 'brandIndustry': '计算机软件', 'brandScaleName': '20-99人', 'welfareList': ['五险一金', '年终奖', '节日福利', '补充医疗保险'], 'industry': 0, 'contact': False}, {'securityId': 'BlYV_QXruCAHE-K1tgzdMk4oqbM2u-TQq4Ov73JwWjXUy9gfPTY8RyMM76DoEtkULGB5x2T2dPX5IcWsDWlDr6KetUqJySfEaUzOuU0LxMYhjNnOp1KT2LHdQvWWpn4nfCuaxVw49XvLURw~', 'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_2.png', 'bossCert': 3, 'encryptBossId': '81caa046e735476d0nZ52tS_F1dX', 'bossName': '贾津', 'bossTitle': '人事/行政', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': '76b51a125e9572221XV73Nu5EVtS', 'expectId': 408903027, 'jobName': 'web前端开发工程师', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.11', 'salaryDesc': '4-9K', 'jobLabels': ['1-3年', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['数据结构', '前端开发', 'Web端'], 'jobExperience': '1-3年', 'daysPerWeekDesc': '', 'leastMonthDesc': '', 'jobDegree': '本科', 'cityName': '东莞', 'areaDistrict': '桥头镇', 'businessDistrict': '桥光大道', 'jobType': 0, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 1, 'optimal': 0, 'iconFlagList': [4], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': '9904bad5b852b5ff1XR82dm_GA~~', 'brandName': '精纬软件', 'brandLogo': 'https://img.bosszhipin.com/beijin/icon/894ce6fa7e58d64d57e7f22d2f3a9d18afa7fcceaa24b8ea28f56f1bb14732c0.png', 'brandStageName': '', 'brandIndustry': '计算机软件', 'brandScaleName': '20-99人', 'welfareList': [], 'industry': 0, 'contact': False}, {'securityId': 'NeYr0g_OD056Q-21IMeR0_l4QBCH8H72KdHzLpYMCP5idF_u7OpDUP1XDGJQid5kazh8_9xIQENe66BbNsuQYwOvyjqpDFxGeAmb3ZsH55Ch_eXdVAA8l93Y4X3GZlSM92q3ztKm9FfH7A~~', 'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_6.png', 'bossCert': 3, 'encryptBossId': '69f9d843e56a658f0nZy3t-5EVNU', 'bossName': '张学明', 'bossTitle': '技术经理', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': '056580d9b16692a41nN_2tW9EFpQ', 'expectId': 408903027, 'jobName': '前端开发实习生', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.12', 'salaryDesc': '90-100元/天', 'jobLabels': ['4天/周', '5个月', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['前端开发', 'WEB开发', 'JavaScript', 'HTML5', 'ES6', 'Vue', 'JQuery', 'Web端'], 'jobExperience': '4天/周 5个月', 'daysPerWeekDesc': '4天/周', 'leastMonthDesc': '5个月', 'jobDegree': '本科', 'cityName': '佛山', 'areaDistrict': '顺德区', 'businessDistrict': '北滘', 'jobType': 4, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 1, 'optimal': 0, 'iconFlagList': [4], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': '4175315b8b28d0d00XB_39W8', 'brandName': '美云智数', 'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/banner/8b2250b025cc910b1007dbea17d737d1cfcd208495d565ef66e7dff9f98764da.png', 'brandStageName': '不需要融资', 'brandIndustry': '互联网', 'brandScaleName': '1000-9999人', 'welfareList': ['定期体检', '五险一金', '员工旅游', '零食下午茶', '餐补', '带薪年假', '免费班车', '节日福利', '年终奖', '补充医疗保险', '交通补助'], 'industry': 0, 'contact': False}, {'securityId': 'EIaJ5qozSpW4o-R10abWxU2oc8FqyltpGS-rTTK2NjBfzO-GRDdf9hhwxJnnT0Z_aR1x22DZp_WZ3XUwBXwt0UyTedaxS2e-Js1wdVr3b6cDl2H25PcjAqCNWH4g0QnfIrg152aF4qe400c~', 'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_3.png', 'bossCert': 3, 'encryptBossId': 'ff992eb3eb5c02a40nZ709y-FlZX', 'bossName': '刘女士', 'bossTitle': 'HR', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': 'eb9d7154a5bd53561nJ52di5FFVT', 'expectId': 408903027, 'jobName': 'web前端开发工程师', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.13', 'salaryDesc': '3-5K', 'jobLabels': ['经验不限', '大专'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['前端开发', 'HTML', 'CSS', 'JavaScript', 'CSS3', 'HTML5', 'JQuery', 'Bootstrap'], 'jobExperience': '经验不限', 'daysPerWeekDesc': '', 'leastMonthDesc': '', 'jobDegree': '大专', 'cityName': '广州', 'areaDistrict': '天河区', 'businessDistrict': '珠江新城', 'jobType': 0, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 0, 'optimal': 0, 'iconFlagList': [], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': '90062b331a1cc8ca1nx-2N69Eg~~', 'brandName': '金乾科技', 'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20180503/ae659d00cac36fc3bf3e53361d922fce95e4441ae0f277caaa6b28e45c8668a3.jpg', 'brandStageName': '未融资', 'brandIndustry': '互联网', 'brandScaleName': '20-99人', 'welfareList': [], 'industry': 0, 'contact': False}, {'securityId': 'qN2Ttdz7zc8VL-G1TE-Z2BY8zIbpsrioE4sGIGEIStAmgO41-HiUwDbXbcfv_GMlThKCgLxXMrNEy96uus22INK_bQQoiiOGGeHFM7W3eQv0w6SaCPvjOcxY9_E8WhH3i8fNhs3VKmX1m0s~', 'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/avatar/20230512/607f1f3d68754fd0f69f334fffb3a1a81d8a98ad054ed552e36bcd53dbe6b23639f494e58be39f00_s.jpg', 'bossCert': 3, 'encryptBossId': '7ad9781886138aaa33Z-29i9FFQ~', 'bossName': '易芸皑', 'bossTitle': '招聘者', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': 'c3dbad3e619e73aa1XNz2ti-GVpX', 'expectId': 408903027, 'jobName': 'web前端', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.14', 'salaryDesc': '100-200元/天', 'jobLabels': ['4天/周', '3个月', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['JavaScript', 'HTML5', 'CSS', '前端开发经验'], 'jobExperience': '4天/周 3个月', 'daysPerWeekDesc': '4天/周', 'leastMonthDesc': '3个月', 'jobDegree': '本科', 'cityName': '珠海', 'areaDistrict': '香洲区', 'businessDistrict': '新香洲', 'jobType': 4, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 1, 'optimal': 0, 'iconFlagList': [4], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': '2635d71dcb52d6f11XJ839u1E1o~', 'brandName': '珠海凤泽信息科技', 'brandLogo': 'https://img.bosszhipin.com/beijin/icon/894ce6fa7e58d64d57e7f22d2f3a9d18afa7fcceaa24b8ea28f56f1bb14732c0.png', 'brandStageName': '', 'brandIndustry': '计算机软件', 'brandScaleName': '0-20人', 'welfareList': [], 'industry': 0, 'contact': False}, {'securityId': '_c-OwnwyLX9H3-R130LrJmfrao91Dw8dBMFQZ3iyRO4tk3ph9ah4u5SQAy9CYleHzmS1UBxrwUNuVVHjkLEzQtL4v89UPOCWG93YydsE8gYrEETXfXnGjma8V-sRKDXOcMlJfhudKjvdwg~~', 'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/avatar/20201116/391729102ff61df532c97060cc835819237c1335d7c932f67efdba7805f9755e_s.png', 'bossCert': 3, 'encryptBossId': 'f765f3ba2aafba390n1y2NW_EVA~', 'bossName': '崔迁', 'bossTitle': 'IT技术总监', 'goldHunter': 0, 'bossOnline': False, 'encryptJobId': 'd565b1111ee5c3b91XF529q-FFRS', 'expectId': 408903027, 'jobName': 'web前端实习生', 'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.15', 'salaryDesc': '100-150元/天', 'jobLabels': ['5天/周', '6个月', '本科'], 'jobValidStatus': 1, 'iconWord': '', 'skills': ['HTML5', 'Vue', 'JavaScript'], 'jobExperience': '5天/周 6个月', 'daysPerWeekDesc': '5天/周', 'leastMonthDesc': '6个月', 'jobDegree': '本科', 'cityName': '深圳', 'areaDistrict': '龙岗区', 'businessDistrict': '坂田', 'jobType': 4, 'proxyJob': 0, 'proxyType': 0, 'anonymous': 0, 'outland': 1, 'optimal': 0, 'iconFlagList': [4], 'itemId': 0, 'city': 0, 'isShield': 0, 'atsDirectPost': False, 'gps': None, 'encryptBrandId': '9a3e3a38ea3db5340Xx-3dW0FQ~~', 'brandName': '大米和小米', 'brandLogo': 'https://img.bosszhipin.com/beijin/upload/com/logo/20191210/0216d8fd8215f626815b84fdf873b073dcb64e63ef201ff3dbcb69fdc3b7316a.png', 'brandStageName': 'D轮及以上', 'brandIndustry': '学术/科研', 'brandScaleName': '1000-9999人', 'welfareList': ['交通补助', '员工旅游', '通讯补贴', '定期体检', '年终奖', '五险一金', '零食下午茶', '补充医疗保险', '股票期权', '节日福利', '带薪年假'], 'industry': 0, 'contact': False}], 'searchJobList': [], 'totalCount': 450}}\n"
     ]
    }
   ],
   "source": [
    "# send a POST request with headers\n",
    "r = session.get(url, data=json.dumps(payload), headers=headers)\n",
    "\n",
    "# extract the JSON data from the response\n",
    "response_data = r.json()\n",
    "\n",
    "# example: print the number of job postings returned\n",
    "print(response_data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "87e1bb01",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'code': 0,\n",
       " 'message': 'Success',\n",
       " 'zpData': {'jobRecTips': '',\n",
       "  'pageSize': 15,\n",
       "  'sessionId': 'ca7da6f1-64bb-48eb-b9c5-886c91513468',\n",
       "  'jobList': [{'securityId': 'aPgWK2I6wZcx8-D1WbHuPyeXntH5QyQhRfCMVifpwP3x0pWbkNML8Z3Qe_mG4HfcFBVkbq1za_n2KdHLZpnBGvCHfQ6tQHBhUy6-oHPMe6x9lcwgikGPp5rXSsIudvPV9Aix2jK1fAV7h2aU',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_7.png',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': 'b80bbcc4689abefc0nZy3di7EldW',\n",
       "    'bossName': '黄俊成',\n",
       "    'bossTitle': '招聘者',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': 'bd1ade22f1e999d61XV-29-4FlFY',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': '前端开发',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.1',\n",
       "    'salaryDesc': '3-8K',\n",
       "    'jobLabels': ['1-3年', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['HTML', 'JavaScript', 'CSS', 'SQL'],\n",
       "    'jobExperience': '1-3年',\n",
       "    'daysPerWeekDesc': '',\n",
       "    'leastMonthDesc': '',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '广州',\n",
       "    'areaDistrict': '番禺区',\n",
       "    'businessDistrict': '大学城',\n",
       "    'jobType': 0,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 0,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': 'a379520a931cad791nN_2Nm9FlQ~',\n",
       "    'brandName': '维度科技',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/icon/894ce6fa7e58d64d57e7f22d2f3a9d18afa7fcceaa24b8ea28f56f1bb14732c0.png',\n",
       "    'brandStageName': '',\n",
       "    'brandIndustry': '计算机软件',\n",
       "    'brandScaleName': '0-20人',\n",
       "    'welfareList': [],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'Ct-3i6-S178PM-T1aG_VsZA_iZyadYiLU5Uf1XkYoubRhKsPqexSPLXak9tWuDo6fqNv3WkvWj9gs6DdHhzdG5UqVEonVJJ1x-X_dxTx2Sl2VCj22uY4mUOKrsJnnjDmfwCiVmcb-AlVCA~~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/avatar/20211114/607f1f3d68754fd053e6c809c8f3cbdae32462f5eba61398775e6735a67dbfe84f91e14c7ce81403_s.jpg',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': 'e094e79334ee57ec03R639y0GVY~',\n",
       "    'bossName': '蔡行',\n",
       "    'bossTitle': '软件工程师',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': 'f272934c29f80b211n193tm0GFtW',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': '前端开发实习生',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.2',\n",
       "    'salaryDesc': '6-8K',\n",
       "    'jobLabels': ['经验不限', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['Node.js', 'JavaScript', 'Android'],\n",
       "    'jobExperience': '经验不限',\n",
       "    'daysPerWeekDesc': '',\n",
       "    'leastMonthDesc': '',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '深圳',\n",
       "    'areaDistrict': '龙岗区',\n",
       "    'businessDistrict': '坂田',\n",
       "    'jobType': 0,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 1,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [4],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': '4ffe5a5ea95f57e50HR72t-0Ew~~',\n",
       "    'brandName': '齐昕动力',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20230512/7bf6f160950405e9cea2bb67b383b35a9d2230463998e1154dd8de26b1c5a7125261a2721bb3ff94.jpg',\n",
       "    'brandStageName': 'A轮',\n",
       "    'brandIndustry': '电子/半导体/集成电路',\n",
       "    'brandScaleName': '20-99人',\n",
       "    'welfareList': ['补充医疗保险',\n",
       "     '团建经费',\n",
       "     '零食下午茶',\n",
       "     '带薪年假',\n",
       "     '五险一金',\n",
       "     '年终奖',\n",
       "     '节日福利',\n",
       "     '股票期权'],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'ylG2uxW2r6aeA-K1cBUxhM4dGM-zoSiLIoYF_PEapeth4mJoLeSRjHvL7x1zchGdEAnXwTtNgEfgy_3xro60cEdYSXZ74cW0F6S0viV3utH6nRqxNxXdZxwwXJ6oRR4ChIdIiek4UETERHs1',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/avatar/20230514/607f1f3d68754fd07e4988c67056cc0bb86071d8c4338a6c568a43a8829eaf3900de9f18f355e1fe_s.png',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': '27f63704b044824a0nR82dS5EltZ',\n",
       "    'bossName': '齐女士',\n",
       "    'bossTitle': '产品',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': '4453285a6faa589e1Xx-0tS6E1FW',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': '前端开发实习生',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.3',\n",
       "    'salaryDesc': '150-200元/天',\n",
       "    'jobLabels': ['4天/周', '6个月', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['JavaScript', 'HTML5', 'CSS', '计算机/软件工程相关专业', '前端开发经验'],\n",
       "    'jobExperience': '4天/周 6个月',\n",
       "    'daysPerWeekDesc': '4天/周',\n",
       "    'leastMonthDesc': '6个月',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '上海',\n",
       "    'areaDistrict': '松江区',\n",
       "    'businessDistrict': '小昆山',\n",
       "    'jobType': 4,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 1,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [4],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': '83cd3152722ac52e1XZ52Nq8E1A~',\n",
       "    'brandName': '萌宠佳友',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/icon/894ce6fa7e58d64d57e7f22d2f3a9d18afa7fcceaa24b8ea28f56f1bb14732c0.png',\n",
       "    'brandStageName': '',\n",
       "    'brandIndustry': '宠物服务',\n",
       "    'brandScaleName': '0-20人',\n",
       "    'welfareList': [],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'IbOZitrHXp_TU-X1GTSVWLnGcbsA-VTufjAFFqNwgq_IYy1LKYCCMPopbwv4d2-VlMSZ7-_50Z0JPHZpLl-SN2yAHBns6xjvwyazlZeQqLohDi1cVyH9f7pdMKTANQHW5sP_Nuh90AoKhg~~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/beijin/mcs/useravatar/20190613/a978546c71d0e4275cc3b62bcbec6208cfcd208495d565ef66e7dff9f98764da_s.jpg',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': 'ae0a3ff1606316f61XV72NS8E1A~',\n",
       "    'bossName': '张竞楠',\n",
       "    'bossTitle': '人力资源专员',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': 'b29c609ebd2a428d1Xx80t67FVpZ',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': 'web前端开发实习生',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.4',\n",
       "    'salaryDesc': '200-250元/天',\n",
       "    'jobLabels': ['5天/周', '12个月', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['React', '计算机/软件工程相关专业', '前端开发经验', '技术博客/开源项目有所贡献'],\n",
       "    'jobExperience': '5天/周 12个月',\n",
       "    'daysPerWeekDesc': '5天/周',\n",
       "    'leastMonthDesc': '12个月',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '合肥',\n",
       "    'areaDistrict': '蜀山区',\n",
       "    'businessDistrict': '天鹅湖万达广场',\n",
       "    'jobType': 4,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 1,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [4],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': 'f305e3551bf88df81nd73N67FA~~',\n",
       "    'brandName': '青谷信息',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20180205/7633a2e6a9b3c5d5c851c99842431766350831faf5e9112cd129ddcdc91b4840.jpg',\n",
       "    'brandStageName': '未融资',\n",
       "    'brandIndustry': '互联网',\n",
       "    'brandScaleName': '100-499人',\n",
       "    'welfareList': ['定期体检',\n",
       "     '节日福利',\n",
       "     '带薪年假',\n",
       "     '年终奖',\n",
       "     '员工旅游',\n",
       "     '通讯补贴',\n",
       "     '项目奖金',\n",
       "     '年终奖',\n",
       "     '股票期权'],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'BE_z5J13EjXCk-s1MgSYiaXJfqxKt_uLuPAmkrrANFvnC4xH3ElxE4qnzroSu4ZQky-B4_krUlRmtbQRqn2UVXq6kH5kos3Uxw-RTtsh5J0GquX1O51l_2Ui0OjNY69IsSTW2pg4IyK2NPQ~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/beijin/mcs/useravatar/20180505/b8ea4f76bfe212e876fc4dc2bac640a4a25f296400eacb47608096d63ae0b2e1_s.jpg',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': '3b77cd56e66b0c9b1Hx5396-EFA~',\n",
       "    'bossName': '张平富',\n",
       "    'bossTitle': '招聘者',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': '1e2024ba76ca85581nFy0t2-F1JY',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': '前端开发工程师',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.5',\n",
       "    'salaryDesc': '3-4K·13薪',\n",
       "    'jobLabels': ['经验不限', '学历不限'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['前端开发'],\n",
       "    'jobExperience': '经验不限',\n",
       "    'daysPerWeekDesc': '',\n",
       "    'leastMonthDesc': '',\n",
       "    'jobDegree': '学历不限',\n",
       "    'cityName': '广州',\n",
       "    'areaDistrict': '番禺区',\n",
       "    'businessDistrict': '市桥',\n",
       "    'jobType': 0,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 0,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': 'ff0a2aa48309d38b1nN-2t2_GFQ~',\n",
       "    'brandName': '恒网科技',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/app/mobile/normal-0e3f1e4441a21d4874cece3a3d81f0fe.png',\n",
       "    'brandStageName': '',\n",
       "    'brandIndustry': '互联网',\n",
       "    'brandScaleName': '20-99人',\n",
       "    'welfareList': [],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'rZsqL5ezoN7OT-Y1tH-F0wBv9JpoNwmXNPkCGcnRk6BAh6r4I_v790nx4rqHEfwS4UT1VmmdQJBk71mNQe24YdnJrIuO3kyF3uuz-lUHWQuMBdxiRTTC0g2J63L4JbUVt0SvDxt8NToAYg~~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/avatar/20220224/607f1f3d68754fd0806637fc1fde29f666aa058a82321633a50bda9c53030e0b7ae7536c9eb30a61_s.jpg',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': '48087d2907d70e6e03F63dy_E1E~',\n",
       "    'bossName': '黄女士',\n",
       "    'bossTitle': '前端主管',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': 'e448c5f1db0f9a5f1XZy3Ni-ElZY',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': '前端开发实习生',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.6',\n",
       "    'salaryDesc': '140-180元/天',\n",
       "    'jobLabels': ['7天/周', '3个月', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['Vue', 'H5/C3/JS'],\n",
       "    'jobExperience': '7天/周 3个月',\n",
       "    'daysPerWeekDesc': '7天/周',\n",
       "    'leastMonthDesc': '3个月',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '深圳',\n",
       "    'areaDistrict': '南山区',\n",
       "    'businessDistrict': '西丽',\n",
       "    'jobType': 4,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 1,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [4],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': 'bfe3891a6c4dc5a71XB_29-5EA~~',\n",
       "    'brandName': '华声医疗',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20190227/f53af65911428de146afff30b93b41cff32d7010506213c99a30ca978565a9b1_s.jpg',\n",
       "    'brandStageName': 'B轮',\n",
       "    'brandIndustry': '医疗设备/器械',\n",
       "    'brandScaleName': '500-999人',\n",
       "    'welfareList': ['餐补',\n",
       "     '通讯补贴',\n",
       "     '音乐下午茶',\n",
       "     '交通补助',\n",
       "     '定期体检',\n",
       "     '兴趣协会',\n",
       "     '零食下午茶',\n",
       "     '五险一金',\n",
       "     '节日福利',\n",
       "     '年薪包',\n",
       "     '员工旅游',\n",
       "     '年终奖',\n",
       "     '带薪年假'],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'o25YOHa0yQkwI-c1p4RyR62axTz3z1BDIaE4RxJTyMcvaeE1U-ZOskTRbegLg_0Q5zTzXl6NP5vUMkNY5psJ3KGCN8m6iYPrJBJzJQ87SuqVSnX-NrLDpfCk4pWlqpaGrINGJ83Jqkvp',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/beijin/mcs/useravatar/20161028/dc3c025559e0f446c4cb3553960ab8828345dd3565835fe42a8679b5f3cdce48_s.jpg',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': '4f0875c1506f9b821n1z292_GVQ~',\n",
       "    'bossName': '邓先生',\n",
       "    'bossTitle': '招聘者',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': '4450a0a803552a781XB92tm8FVpW',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': 'UNIAPP(VUE)前端实习',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.7',\n",
       "    'salaryDesc': '130-180元/天',\n",
       "    'jobLabels': ['5天/周', '3个月', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['Vue', 'HTML5', 'JavaScript'],\n",
       "    'jobExperience': '5天/周 3个月',\n",
       "    'daysPerWeekDesc': '5天/周',\n",
       "    'leastMonthDesc': '3个月',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '深圳',\n",
       "    'areaDistrict': '龙华区',\n",
       "    'businessDistrict': '深圳北站',\n",
       "    'jobType': 4,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 1,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [4],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': '2ddc2499ecaa996003R409S_',\n",
       "    'brandName': '俊网',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20190212/b106a002b9f2ea6ab2f46f814ef55f22d601821abe36fb34d5a2f5330b3564d0.png',\n",
       "    'brandStageName': '未融资',\n",
       "    'brandIndustry': '电子商务',\n",
       "    'brandScaleName': '20-99人',\n",
       "    'welfareList': ['五险一金'],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'uOZrqMHqzArFn-i1T2a3A8ZTzuuDgcdGECrGYiUFejZg5HjEzeTN6vkRBNPYgIBBSMyJSnsEEpwF2Df_-OzbGmYjy7MlGjmr2N9_SRajlfENSFpZ4R_EZqnZwavvjTCXaWBZ5kUXukii',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/tmp/20210901/a2f3e71d9181a67b3d68c1d81966e50cb4031b42a1b7c533cfc52e6ed70787214a040fbe27cc7e49_s.jpg',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': 'c30a13028f86d9081XJ509m6EVU~',\n",
       "    'bossName': '陈女士',\n",
       "    'bossTitle': '人事HR',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': 'df6a08a998bc57f61n170t24GFpW',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': '前端开发实习生',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.8',\n",
       "    'salaryDesc': '3-4K',\n",
       "    'jobLabels': ['1年以内', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['前端开发',\n",
       "     'JavaScript',\n",
       "     'CSS',\n",
       "     'HTML',\n",
       "     'HTML5',\n",
       "     'React',\n",
       "     'Bootstrap',\n",
       "     'Web端'],\n",
       "    'jobExperience': '1年以内',\n",
       "    'daysPerWeekDesc': '',\n",
       "    'leastMonthDesc': '',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '广州',\n",
       "    'areaDistrict': '天河区',\n",
       "    'businessDistrict': '天河公园',\n",
       "    'jobType': 0,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 0,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': 'c5eab1ae4496c89b0HJ92dW0',\n",
       "    'brandName': '天迅网络',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20170716/9cfb3fd07ede49e0ff1aaaf0e2432a6f1a1e4f87f826d045970b516755730e96.jpg',\n",
       "    'brandStageName': '未融资',\n",
       "    'brandIndustry': '计算机软件',\n",
       "    'brandScaleName': '20-99人',\n",
       "    'welfareList': ['零食下午茶', '五险一金', '节日福利', '员工旅游'],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'DsMFmI1oMTGFa-i1WDRUmbtBZz9xMJUs1TL1KdY2VuNFxFwgmWsM2GSXEkymKzXzigdxjF4Gy1xzkE2xYwzCjEcxHwfvRgxc5bumS9yqD3QkhlIud3QtLZQnH1Gj2d3o9rFr3mtsgKJwLw~~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_15.png',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': 'b4783561acfc055f03N-2NW1EFE~',\n",
       "    'bossName': '李宝玉',\n",
       "    'bossTitle': '招聘者',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': '31ab685815edcacf1Xd-09u_GVJQ',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': 'WEB前端开发实习',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.9',\n",
       "    'salaryDesc': '150-300元/天',\n",
       "    'jobLabels': ['3天/周', '3个月', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['HTML', '前端开发', 'Web端', '移动端', '小程序'],\n",
       "    'jobExperience': '3天/周 3个月',\n",
       "    'daysPerWeekDesc': '3天/周',\n",
       "    'leastMonthDesc': '3个月',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '杭州',\n",
       "    'areaDistrict': '余杭区',\n",
       "    'businessDistrict': '仓前',\n",
       "    'jobType': 4,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 1,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [4],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': '0a55a725e748a2821HZ909m6GQ~~',\n",
       "    'brandName': '杭州全景数据科技...',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20210806/68b1ac1727cdd3c678cbf8c7d3f8f1d3f212260c6c30e83dceeca306e84ebc5f.jpg',\n",
       "    'brandStageName': '天使轮',\n",
       "    'brandIndustry': '医疗健康',\n",
       "    'brandScaleName': '0-20人',\n",
       "    'welfareList': ['五险一金', '全勤奖', '年终奖', '带薪年假', '股票期权'],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': '0VNKynwE66rXB-Z1XufqZynYI0f8Zkh_GMnCslAiJ52qiFxhUvw3-f3H3Tb9MhqHxST4Y8vnC73byo1sznP3p8hbQZmDZwH0T9cShTxFYnfDmt4Irlw4bAzKFPHPeQFIzcGKWw-18PcwlFg~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_6.png',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': '680ce6e6e91dc59e1nV83N-0EVtX',\n",
       "    'bossName': '乐先生',\n",
       "    'bossTitle': '行政',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': '4505f719527112ed1nV72tS-ElZQ',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': '前端开发工程师',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.10',\n",
       "    'salaryDesc': '80-130元/天',\n",
       "    'jobLabels': ['5天/周', '6个月', '大专'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['前端开发', 'JavaScript', 'CSS', 'JQuery', 'Vue', 'Vue.js'],\n",
       "    'jobExperience': '5天/周 6个月',\n",
       "    'daysPerWeekDesc': '5天/周',\n",
       "    'leastMonthDesc': '6个月',\n",
       "    'jobDegree': '大专',\n",
       "    'cityName': '广州',\n",
       "    'areaDistrict': '海珠区',\n",
       "    'businessDistrict': '新港西路沿线',\n",
       "    'jobType': 4,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 0,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': 'e9eeb88cc6c9c92a3nZ-3Ny5FQ~~',\n",
       "    'brandName': '科上技术',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20200729/6ae530e312f59c34738b0c5b8abb1951660afb547a9cef9e5c99753e44aa53f9_s.jpg',\n",
       "    'brandStageName': '未融资',\n",
       "    'brandIndustry': '计算机软件',\n",
       "    'brandScaleName': '20-99人',\n",
       "    'welfareList': ['五险一金', '年终奖', '节日福利', '补充医疗保险'],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'BlYV_QXruCAHE-K1tgzdMk4oqbM2u-TQq4Ov73JwWjXUy9gfPTY8RyMM76DoEtkULGB5x2T2dPX5IcWsDWlDr6KetUqJySfEaUzOuU0LxMYhjNnOp1KT2LHdQvWWpn4nfCuaxVw49XvLURw~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_2.png',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': '81caa046e735476d0nZ52tS_F1dX',\n",
       "    'bossName': '贾津',\n",
       "    'bossTitle': '人事/行政',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': '76b51a125e9572221XV73Nu5EVtS',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': 'web前端开发工程师',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.11',\n",
       "    'salaryDesc': '4-9K',\n",
       "    'jobLabels': ['1-3年', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['数据结构', '前端开发', 'Web端'],\n",
       "    'jobExperience': '1-3年',\n",
       "    'daysPerWeekDesc': '',\n",
       "    'leastMonthDesc': '',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '东莞',\n",
       "    'areaDistrict': '桥头镇',\n",
       "    'businessDistrict': '桥光大道',\n",
       "    'jobType': 0,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 1,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [4],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': '9904bad5b852b5ff1XR82dm_GA~~',\n",
       "    'brandName': '精纬软件',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/icon/894ce6fa7e58d64d57e7f22d2f3a9d18afa7fcceaa24b8ea28f56f1bb14732c0.png',\n",
       "    'brandStageName': '',\n",
       "    'brandIndustry': '计算机软件',\n",
       "    'brandScaleName': '20-99人',\n",
       "    'welfareList': [],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'NeYr0g_OD056Q-21IMeR0_l4QBCH8H72KdHzLpYMCP5idF_u7OpDUP1XDGJQid5kazh8_9xIQENe66BbNsuQYwOvyjqpDFxGeAmb3ZsH55Ch_eXdVAA8l93Y4X3GZlSM92q3ztKm9FfH7A~~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_6.png',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': '69f9d843e56a658f0nZy3t-5EVNU',\n",
       "    'bossName': '张学明',\n",
       "    'bossTitle': '技术经理',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': '056580d9b16692a41nN_2tW9EFpQ',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': '前端开发实习生',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.12',\n",
       "    'salaryDesc': '90-100元/天',\n",
       "    'jobLabels': ['4天/周', '5个月', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['前端开发',\n",
       "     'WEB开发',\n",
       "     'JavaScript',\n",
       "     'HTML5',\n",
       "     'ES6',\n",
       "     'Vue',\n",
       "     'JQuery',\n",
       "     'Web端'],\n",
       "    'jobExperience': '4天/周 5个月',\n",
       "    'daysPerWeekDesc': '4天/周',\n",
       "    'leastMonthDesc': '5个月',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '佛山',\n",
       "    'areaDistrict': '顺德区',\n",
       "    'businessDistrict': '北滘',\n",
       "    'jobType': 4,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 1,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [4],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': '4175315b8b28d0d00XB_39W8',\n",
       "    'brandName': '美云智数',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/banner/8b2250b025cc910b1007dbea17d737d1cfcd208495d565ef66e7dff9f98764da.png',\n",
       "    'brandStageName': '不需要融资',\n",
       "    'brandIndustry': '互联网',\n",
       "    'brandScaleName': '1000-9999人',\n",
       "    'welfareList': ['定期体检',\n",
       "     '五险一金',\n",
       "     '员工旅游',\n",
       "     '零食下午茶',\n",
       "     '餐补',\n",
       "     '带薪年假',\n",
       "     '免费班车',\n",
       "     '节日福利',\n",
       "     '年终奖',\n",
       "     '补充医疗保险',\n",
       "     '交通补助'],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'EIaJ5qozSpW4o-R10abWxU2oc8FqyltpGS-rTTK2NjBfzO-GRDdf9hhwxJnnT0Z_aR1x22DZp_WZ3XUwBXwt0UyTedaxS2e-Js1wdVr3b6cDl2H25PcjAqCNWH4g0QnfIrg152aF4qe400c~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/boss/avatar/avatar_3.png',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': 'ff992eb3eb5c02a40nZ709y-FlZX',\n",
       "    'bossName': '刘女士',\n",
       "    'bossTitle': 'HR',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': 'eb9d7154a5bd53561nJ52di5FFVT',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': 'web前端开发工程师',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.13',\n",
       "    'salaryDesc': '3-5K',\n",
       "    'jobLabels': ['经验不限', '大专'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['前端开发',\n",
       "     'HTML',\n",
       "     'CSS',\n",
       "     'JavaScript',\n",
       "     'CSS3',\n",
       "     'HTML5',\n",
       "     'JQuery',\n",
       "     'Bootstrap'],\n",
       "    'jobExperience': '经验不限',\n",
       "    'daysPerWeekDesc': '',\n",
       "    'leastMonthDesc': '',\n",
       "    'jobDegree': '大专',\n",
       "    'cityName': '广州',\n",
       "    'areaDistrict': '天河区',\n",
       "    'businessDistrict': '珠江新城',\n",
       "    'jobType': 0,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 0,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': '90062b331a1cc8ca1nx-2N69Eg~~',\n",
       "    'brandName': '金乾科技',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/mcs/chatphoto/20180503/ae659d00cac36fc3bf3e53361d922fce95e4441ae0f277caaa6b28e45c8668a3.jpg',\n",
       "    'brandStageName': '未融资',\n",
       "    'brandIndustry': '互联网',\n",
       "    'brandScaleName': '20-99人',\n",
       "    'welfareList': [],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': 'qN2Ttdz7zc8VL-G1TE-Z2BY8zIbpsrioE4sGIGEIStAmgO41-HiUwDbXbcfv_GMlThKCgLxXMrNEy96uus22INK_bQQoiiOGGeHFM7W3eQv0w6SaCPvjOcxY9_E8WhH3i8fNhs3VKmX1m0s~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/avatar/20230512/607f1f3d68754fd0f69f334fffb3a1a81d8a98ad054ed552e36bcd53dbe6b23639f494e58be39f00_s.jpg',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': '7ad9781886138aaa33Z-29i9FFQ~',\n",
       "    'bossName': '易芸皑',\n",
       "    'bossTitle': '招聘者',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': 'c3dbad3e619e73aa1XNz2ti-GVpX',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': 'web前端',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.14',\n",
       "    'salaryDesc': '100-200元/天',\n",
       "    'jobLabels': ['4天/周', '3个月', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['JavaScript', 'HTML5', 'CSS', '前端开发经验'],\n",
       "    'jobExperience': '4天/周 3个月',\n",
       "    'daysPerWeekDesc': '4天/周',\n",
       "    'leastMonthDesc': '3个月',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '珠海',\n",
       "    'areaDistrict': '香洲区',\n",
       "    'businessDistrict': '新香洲',\n",
       "    'jobType': 4,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 1,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [4],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': '2635d71dcb52d6f11XJ839u1E1o~',\n",
       "    'brandName': '珠海凤泽信息科技',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/icon/894ce6fa7e58d64d57e7f22d2f3a9d18afa7fcceaa24b8ea28f56f1bb14732c0.png',\n",
       "    'brandStageName': '',\n",
       "    'brandIndustry': '计算机软件',\n",
       "    'brandScaleName': '0-20人',\n",
       "    'welfareList': [],\n",
       "    'industry': 0,\n",
       "    'contact': False},\n",
       "   {'securityId': '_c-OwnwyLX9H3-R130LrJmfrao91Dw8dBMFQZ3iyRO4tk3ph9ah4u5SQAy9CYleHzmS1UBxrwUNuVVHjkLEzQtL4v89UPOCWG93YydsE8gYrEETXfXnGjma8V-sRKDXOcMlJfhudKjvdwg~~',\n",
       "    'bossAvatar': 'https://img.bosszhipin.com/beijin/upload/avatar/20201116/391729102ff61df532c97060cc835819237c1335d7c932f67efdba7805f9755e_s.png',\n",
       "    'bossCert': 3,\n",
       "    'encryptBossId': 'f765f3ba2aafba390n1y2NW_EVA~',\n",
       "    'bossName': '崔迁',\n",
       "    'bossTitle': 'IT技术总监',\n",
       "    'goldHunter': 0,\n",
       "    'bossOnline': False,\n",
       "    'encryptJobId': 'd565b1111ee5c3b91XF529q-FFRS',\n",
       "    'expectId': 408903027,\n",
       "    'jobName': 'web前端实习生',\n",
       "    'lid': 'a3c4396a-8107-4e58-9682-8858dfb2e32c.f1:common.eyJzZXNzaW9uSWQiOiJjYTdkYTZmMS02NGJiLTQ4ZWItYjljNS04ODZjOTE1MTM0NjgiLCJyY2RCelR5cGUiOiJmMV9ncmNkIn0.15',\n",
       "    'salaryDesc': '100-150元/天',\n",
       "    'jobLabels': ['5天/周', '6个月', '本科'],\n",
       "    'jobValidStatus': 1,\n",
       "    'iconWord': '',\n",
       "    'skills': ['HTML5', 'Vue', 'JavaScript'],\n",
       "    'jobExperience': '5天/周 6个月',\n",
       "    'daysPerWeekDesc': '5天/周',\n",
       "    'leastMonthDesc': '6个月',\n",
       "    'jobDegree': '本科',\n",
       "    'cityName': '深圳',\n",
       "    'areaDistrict': '龙岗区',\n",
       "    'businessDistrict': '坂田',\n",
       "    'jobType': 4,\n",
       "    'proxyJob': 0,\n",
       "    'proxyType': 0,\n",
       "    'anonymous': 0,\n",
       "    'outland': 1,\n",
       "    'optimal': 0,\n",
       "    'iconFlagList': [4],\n",
       "    'itemId': 0,\n",
       "    'city': 0,\n",
       "    'isShield': 0,\n",
       "    'atsDirectPost': False,\n",
       "    'gps': None,\n",
       "    'encryptBrandId': '9a3e3a38ea3db5340Xx-3dW0FQ~~',\n",
       "    'brandName': '大米和小米',\n",
       "    'brandLogo': 'https://img.bosszhipin.com/beijin/upload/com/logo/20191210/0216d8fd8215f626815b84fdf873b073dcb64e63ef201ff3dbcb69fdc3b7316a.png',\n",
       "    'brandStageName': 'D轮及以上',\n",
       "    'brandIndustry': '学术/科研',\n",
       "    'brandScaleName': '1000-9999人',\n",
       "    'welfareList': ['交通补助',\n",
       "     '员工旅游',\n",
       "     '通讯补贴',\n",
       "     '定期体检',\n",
       "     '年终奖',\n",
       "     '五险一金',\n",
       "     '零食下午茶',\n",
       "     '补充医疗保险',\n",
       "     '股票期权',\n",
       "     '节日福利',\n",
       "     '带薪年假'],\n",
       "    'industry': 0,\n",
       "    'contact': False}],\n",
       "  'searchJobList': [],\n",
       "  'totalCount': 450}}"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "90217f67",
   "metadata": {},
   "outputs": [],
   "source": [
    "from selenium import webdriver\n",
    "\n",
    "driver = webdriver.Chrome()\n",
    "driver.get(\n",
    "    'https://www.zhipin.com/web/geek/job?query=%E6%B8%B8%E6%88%8F%E6%B5%8B%E8%AF%95%E5%B7%A5%E7%A8%8B%E5%B8%88&city=101280100&position=130111')\n",
    "lis = driver.find_elements_by_css_selector('.job-card-wrapper')\n",
    "for li in lis:\n",
    "    title = li.find_element_by_css_selector('.job-card-body clearfix').text\n",
    "    print(title)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4ead9167",
   "metadata": {},
   "outputs": [],
   "source": [
    "import time\n",
    "import requests\n",
    "import json\n",
    "from lxml import etree\n",
    "import pandas as pd\n",
    "import pymongo\n",
    "from selenium.webdriver.common.by import By\n",
    "from selenium import webdriver\n",
    "dict_list=[]\n",
    "position_list=[]\n",
    "location_list=[]\n",
    "money_list=[]\n",
    "company_list=[]\n",
    "company_welfare_list=[]\n",
    "management_list=[]\n",
    "exp_list=[]\n",
    "detailed_url_list=[]\n",
    "browser=webdriver.Chrome()\n",
    "for j in range(1,11):\n",
    "    url='https://www.zhipin.com/c101040100/e_102/?query=python&page={}&ka=page-{}'.format(j,j)\n",
    "    browser.get(url)\n",
    "    time.sleep(5)\n",
    "    if j==1:\n",
    "        browser.find_element(By.//*[@id=\"header\"]/div[1]/div[3]/div/a[5],'//*[@id=\"header\"]/div[1]/div[3]/div/a[5]').click()\n",
    "        time.sleep(2)\n",
    "        browser.find_element(By.//*[@id=\"wrap\"]/div[2]/div[1]/div[2]/div[2],'//*[@id=\"wrap\"]/div[2]/div[1]/div[2]/div[2]').click()\n",
    "        time.sleep(5)\n",
    "        input=browser.find_element(By.//*[@id=\"container\"]/div[2]/div/div[1]/div/div[2]/div/div[1]/input,'//*[@id=\"container\"]/div[2]/div/div[1]/div/div[2]/div/div[1]/input')\n",
    "        input.click()\n",
    "        input.send_keys('python')\n",
    "        time.sleep(2)\n",
    "        browser.find_element(By.//*[@id=\"container\"]/div[2]/div/div[1]/div/div[2]/div/div[2]/ul/li[1],'//*[@id=\"container\"]/div[2]/div/div[1]/div/div[2]/div/div[2]/ul/li[1]').click()\n",
    "        time.sleep(3)\n",
    "        for i in range(1,31):\n",
    "            position=browser.find_element(By.//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a,'//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a'.format(i)).text\n",
    "            location=browser.find_element(By.//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[2]/span,'//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[2]/span'.format(i)).text\n",
    "            time.sleep(1)\n",
    "            money=browser.find_element(By.//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/span,'//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/span'.format(i)).text\n",
    "            company=browser.find_element(By.//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[2]/div/h3/a,'//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[2]/div/h3/a'.format(i)).text\n",
    "            time.sleep(1.5)\n",
    "            company_welfare=browser.find_element(By.//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[2]/div[2],'//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[2]/div[2]'.format(i)).text\n",
    "            management=browser.find_element(By.//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[2]/div/p/a,'//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[2]/div/p/a'.format(i)).text\n",
    "            time.sleep(1)\n",
    "            exp=browser.find_element(By.//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/p,'//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/p'.format(i)).text\n",
    "            detailed_url=browser.find_element(By.//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a.'//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a'.format(i)).get_attribute('href')\n",
    "            dict={'公司名称':company,'职位':position,'薪资待遇':money,'公司福利':company_welfare,'公司地点':location,'经营方向':management,'经验要求':exp,'联系它们网页':detailed_url}\n",
    "            dict_list.append(dict)\n",
    "            position_list.append(position)\n",
    "            location_list.append(location)\n",
    "            money_list.append(money)\n",
    "            company_list.append(company)\n",
    "            company_welfare_list.append(company_welfare)\n",
    "            management_list.append(management)\n",
    "            exp_list.append(exp)\n",
    "            detailed_url_list.append(detailed_url)\n",
    "            time.sleep(1)\n",
    "        print(dict_list)\n",
    "        print('第一页爬取完毕')\n",
    "    else:\n",
    "        for i in range(1,31):\n",
    "            position=browser.find_element(By.//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a,'//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a'.format(i)).text\n",
    "            location=browser.find_element(By.//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[2]/span,'//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[2]/span'.format(i)).text\n",
    "            time.sleep(1)\n",
    "            money=browser.find_element(By.//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/span,'//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/span'.format(i)).text\n",
    "            company=browser.find_element(By.//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[2]/div/h3/a,'//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[2]/div/h3/a'.format(i)).text\n",
    "            time.sleep(1.5)\n",
    "            company_welfare=browser.find_element(By.//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[2]/div[2],'//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[2]/div[2]'.format(i)).text\n",
    "            management=browser.find_element(By.//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[2]/div/p/a,'//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[2]/div/p/a'.format(i)).text\n",
    "            time.sleep(1)\n",
    "            exp=browser.find_element(By.//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/p,'//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/p'.format(i)).text\n",
    "            detailed_url=browser.find_element(By.//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a,'//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a'.format(i)).get_attribute('href')\n",
    "            #detailed_url = re.search(r'\\w+\\W\\w+\\.\\w+', str(detailed_url)).group(0)\n",
    "            #detailed_url = 'www.zhipin.com/' + detailed_url\n",
    "            dict={'公司名称':company,'职位':position,'薪资待遇':money,'公司福利':company_welfare,'公司地点':location,'经营方向':management,'经验要求':exp,'联系它们网页':detailed_url}\n",
    "            dict_list.append(dict)\n",
    "            position_list.append(position)\n",
    "            location_list.append(location)\n",
    "            money_list.append(money)\n",
    "            company_list.append(company)\n",
    "            company_welfare_list.append(company_welfare)\n",
    "            management_list.append(management)\n",
    "            exp_list.append(exp)\n",
    "            detailed_url_list.append(detailed_url)\n",
    "            time.sleep(1)\n",
    "        print(dict_list)\n",
    "        print('第{}页爬取完毕'.format(j))\n",
    "dict2={'公司名称':company_list,'职位':position_list,'薪资待遇':money_list,'公司福利':company_welfare_list,'公司地点':location_list,'经营方向':management_list,'经验要求':exp_list,'联系它们网页':detailed_url_list}\n",
    "dt=pd.DataFrame(dict2)\n",
    "dt.to_csv(r'C:\\Users\\asus\\Desktop\\boss直聘python.csv',mode='w')\n",
    "client=pymongo.MongoClient('mongodb://localhost:27017/')#链接mongodb数据库\n",
    "db=client['boss直聘python']#创建数据库\n",
    "db.collection.insert_one(dict2)#数据库中插入字典型数据dict2\n",
    "print('运行完毕')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "6f8b61fa",
   "metadata": {},
   "outputs": [],
   "source": [
    "from selenium import webdriver  # 操控浏览器 pip install selenium\n",
    "\n",
    "import csv  # 内置模块 不需要安装\n",
    "import time\n",
    "\n",
    "key_word = input('请输入你想要搜索的岗位名字: ') # print 输出 input 输入\n",
    "\n",
    "f = open(f'{key_word}data.csv', mode='a', encoding='utf-8', newline='')\n",
    "csv_writer = csv.DictWriter(f, fieldnames=['标题', '地区', '公司名字', '薪资',\n",
    "                                           '经验', '公司类型', '公司福利', '详情页'\n",
    "    ])\n",
    "\n",
    "csv_writer.writeheader()  # 写入表头\n",
    "\n",
    "driver = webdriver.Chrome()  # 实例化浏览器对象 我把驱动直接放在和python安装的同目录下面\n",
    "driver.get(f'https://www.zhipin.com/job_detail/?query={key_word}&city=100010000&industry=&position=')\n",
    "driver.implicitly_wait(10)  # 隐式等待 等浏览器数据加载完之后 就进行下一步操作\n",
    "# time.sleep(10) 死等 一定要等够10秒钟, 才进行下一步操作\n",
    "# 可以通过 css选择器 或者xpath 直接定位元素\n",
    "# 通过css选择器在元素面板里面查找\n",
    "# driver.find_element_by_css_selector('.ipt-search').send_keys('python') # 输入搜索内容\n",
    "# driver.find_element_by_css_selector('').click() # 点击\n",
    "# 通过两次提取, 第一次获取所有li标签内容\n",
    "\n",
    "def get_job_info():\n",
    "    lis = driver.find_elements_by_css_selector('.job-list li')\n",
    "    # 返回的是列表, 列表里面的元素 是 selenium对象\n",
    "    for li in lis:\n",
    "        area = li.find_element_by_css_selector('.job-area').text  # 地区\n",
    "        title = li.find_element_by_css_selector('.job-name a').text  # 标题\n",
    "        href = li.find_element_by_css_selector('.job-name a').get_attribute('href')  # 详情页\n",
    "        # 字符串替换replace()  remove 列表方法 strip() 去除字符串左右两端的空格\n",
    "        company_name = li.find_element_by_css_selector('.company-text .name a').get_attribute('title').replace('招聘',\n",
    "                                                                                                               '')  # 公司名字\n",
    "        money = li.find_element_by_css_selector('.job-limit .red').text  # 薪资\n",
    "        exp = li.find_element_by_css_selector('.job-limit p').text  # 经验学历\n",
    "        company_type = li.find_element_by_css_selector('.false-link').text  # 公司类型\n",
    "        company_boon = li.find_element_by_css_selector('.info-desc').text  # 公司福利\n",
    "        # ctrl + D 快速复制这行\n",
    "        # 创建一个字典, 把数据内容保存到字典里面\n",
    "        dit = {\n",
    "            '标题': title,\n",
    "            '地区': area,\n",
    "            '公司名字': company_name,\n",
    "            '薪资': money,\n",
    "            '经验': exp,\n",
    "            '公司类型': company_type,\n",
    "            '公司福利': company_boon,\n",
    "            '详情页': href,\n",
    "        }\n",
    "        csv_writer.writerow(dit)\n",
    "        print(title, area, company_name, money, exp, company_type, company_boon, href, sep='|')\n",
    "\n",
    "\n",
    "\n",
    "driver.quit()  # 自动关闭浏览器\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ed6d1efd",
   "metadata": {},
   "outputs": [],
   "source": [
    "pip install selenium==4.1.0"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "505d6826",
   "metadata": {},
   "outputs": [],
   "source": [
    "import time\n",
    "import requests\n",
    "import json\n",
    "from lxml import etree\n",
    "import pandas as pd\n",
    "import pymongo\n",
    "from selenium.webdriver.common.by import By\n",
    "from selenium import webdriver\n",
    "dict_list=[]\n",
    "position_list=[]\n",
    "location_list=[]\n",
    "money_list=[]\n",
    "company_list=[]\n",
    "company_welfare_list=[]\n",
    "management_list=[]\n",
    "exp_list=[]\n",
    "detailed_url_list=[]\n",
    "browser=webdriver.Chrome()\n",
    "for j in range(1,11):\n",
    "    url='https://www.zhipin.com/c101040100/e_102/?query=python&page={}&ka=page-{}'.format(j,j)\n",
    "    browser.get(url)\n",
    "    time.sleep(5)\n",
    "    if j==1:\n",
    "        browser.find_element_by_xpath('//*[@id=\"header\"]/div[1]/div[3]/div/a[5]').click()\n",
    "        time.sleep(2)\n",
    "        browser.find_element_by_xpath('//*[@id=\"wrap\"]/div[2]/div[1]/div[2]/div[2]').click()\n",
    "        time.sleep(5)\n",
    "        input=browser.find_element_by_xpath('//*[@id=\"container\"]/div[2]/div/div[1]/div/div[2]/div/div[1]/input')\n",
    "        input.click()\n",
    "        input.send_keys('python')\n",
    "        time.sleep(2)\n",
    "        browser.find_element_by_xpath('//*[@id=\"container\"]/div[2]/div/div[1]/div/div[2]/div/div[2]/ul/li[1]').click()\n",
    "        time.sleep(3)\n",
    "        for i in range(1,31):\n",
    "            position=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a'.format(i)).text\n",
    "            location=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[2]/span'.format(i)).text\n",
    "            time.sleep(1)\n",
    "            money=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/span'.format(i)).text\n",
    "            company=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[2]/div/h3/a'.format(i)).text\n",
    "            time.sleep(1.5)\n",
    "            company_welfare=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[2]/div[2]'.format(i)).text\n",
    "            management=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[2]/div/p/a'.format(i)).text\n",
    "            time.sleep(1)\n",
    "            exp=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/p'.format(i)).text\n",
    "            detailed_url=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[3]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a'.format(i)).get_attribute('href')\n",
    "            dict={'公司名称':company,'职位':position,'薪资待遇':money,'公司福利':company_welfare,'公司地点':location,'经营方向':management,'经验要求':exp,'联系它们网页':detailed_url}\n",
    "            dict_list.append(dict)\n",
    "            position_list.append(position)\n",
    "            location_list.append(location)\n",
    "            money_list.append(money)\n",
    "            company_list.append(company)\n",
    "            company_welfare_list.append(company_welfare)\n",
    "            management_list.append(management)\n",
    "            exp_list.append(exp)\n",
    "            detailed_url_list.append(detailed_url)\n",
    "            time.sleep(1)\n",
    "        print(dict_list)\n",
    "        print('第一页爬取完毕')\n",
    "    else:\n",
    "        for i in range(1,31):\n",
    "            position=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a'.format(i)).text\n",
    "            location=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[2]/span'.format(i)).text\n",
    "            time.sleep(1)\n",
    "            money=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/span'.format(i)).text\n",
    "            company=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[2]/div/h3/a'.format(i)).text\n",
    "            time.sleep(1.5)\n",
    "            company_welfare=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[2]/div[2]'.format(i)).text\n",
    "            management=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[2]/div/p/a'.format(i)).text\n",
    "            time.sleep(1)\n",
    "            exp=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[2]/p'.format(i)).text\n",
    "            detailed_url=browser.find_element_by_xpath('//*[@id=\"main\"]/div/div[2]/ul/li[{}]/div/div[1]/div[1]/div/div[1]/span[1]/a'.format(i)).get_attribute('href')\n",
    "            #detailed_url = re.search(r'\\w+\\W\\w+\\.\\w+', str(detailed_url)).group(0)\n",
    "            #detailed_url = 'www.zhipin.com/' + detailed_url\n",
    "            dict={'公司名称':company,'职位':position,'薪资待遇':money,'公司福利':company_welfare,'公司地点':location,'经营方向':management,'经验要求':exp,'联系它们网页':detailed_url}\n",
    "            dict_list.append(dict)\n",
    "            position_list.append(position)\n",
    "            location_list.append(location)\n",
    "            money_list.append(money)\n",
    "            company_list.append(company)\n",
    "            company_welfare_list.append(company_welfare)\n",
    "            management_list.append(management)\n",
    "            exp_list.append(exp)\n",
    "            detailed_url_list.append(detailed_url)\n",
    "            time.sleep(1)\n",
    "        print(dict_list)\n",
    "        print('第{}页爬取完毕'.format(j))\n",
    "dict2={'公司名称':company_list,'职位':position_list,'薪资待遇':money_list,'公司福利':company_welfare_list,'公司地点':location_list,'经营方向':management_list,'经验要求':exp_list,'联系它们网页':detailed_url_list}\n",
    "dt=pd.DataFrame(dict2)\n",
    "dt.to_csv(r'C:\\Users\\asus\\Desktop\\boss直聘python.csv',mode='w')\n",
    "client=pymongo.MongoClient('mongodb://localhost:27017/')#链接mongodb数据库\n",
    "db=client['boss直聘python']#创建数据库\n",
    "db.collection.insert_one(dict2)#数据库中插入字典型数据dict2\n",
    "print('运行完毕')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "63789ba0",
   "metadata": {},
   "outputs": [],
   "source": [
    "pip install pymongo"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
